﻿using System;

class HoldBit
{
    static void Main()
    {
        int b = 2;
        int i = 5;
        int mask = 0 << b;
        int iAndMask = i ^ mask;
        int bit = iAndMask >> b;
        Console.WriteLine("value = {0}", bit);
    }
}